/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#include "Hardware.h"
#include "Creator.h"
#include <Gluck.h>

#include <android/log.h> 
#include <jni.h>

namespace liba
{
namespace noise
{
namespace hard
{
namespace android
{
	
static Hardware * sound_hardware = 0;

Creator::Creator()
{
	if( sound_hardware )
		THROW(Gluck(__FUNCTION__, "Hardware already exists"));

	sound_hardware = new Hardware();
}

Creator::~Creator()
{
	delete sound_hardware; sound_hardware = 0;
}

void Creator::life_cycle(double delta_time)
{
	if( sound_hardware )
		sound_hardware->life_cycle( delta_time );
}

extern "C" void Java_com_alawar_tankobox_SoundManager_soundStopped( JNIEnv*  env, jobject thiz, jint soundPlayingId )
{
//	liba::noise::hard::android::sound_hardware->channel_stopped(soundPlayingId);
} 

} // namespace android
} // namespace hard
} // namespace noise
} // namespace liba


